package com.atguigu.url.util;

/**
 * @version V1.0
 * @author: guangcheng
 * @date: 2021/5/22 19:38
 * @description:
 */
public class ResourcesCloseUtils {
    private ResourcesCloseUtils() {

    }


    public static void close(AutoCloseable... args) {
        for (AutoCloseable arg : args) {
            if (arg != null) {
                try {
                    arg.close();
                } catch (Exception e) {
                    e.printStackTrace();
                }
            }
        }
    }
}

